#ifndef FILE_IO_H_3969A60F_D79C_11E0_AE93_005056C00008
#define FILE_IO_H_3969A60F_D79C_11E0_AE93_005056C00008
#include "gpgme/gpgme.h"

struct FILE_IO_META 
{
	FILE* fp;
	DWORD nLowSize;
	DWORD nCurrPos;
};

/**
 * @param[out] db			Need to release using gpgme_data_release.
 * @param[in]  file_name	File name to be use.
 * @param[out] fio_handle   No need to be free.
 */
gpgme_error_t gpgme_data_new_for_read (
	gpgme_data_t *dh,
	const char* file_name,
	FILE_IO_META** fio_handle);

gpgme_error_t gpgme_data_new_for_write (
	gpgme_data_t *dh,
	const char* file_name,
	FILE_IO_META** fio_handle);


#endif
